#returns the length of the difference of given vectors
function d = distance(a,b)
    d=sqrt((a-b)*(a-b)');
end;
